﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace StateApp
{
    public partial class BrowserInfo : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void showButton_Click(object sender, EventArgs e)
        {
            string ans = "";
            ans += "Browser " + Request.UserAgent.ToString() + "<br/>";
            ans += "IP " + Request.UserHostAddress + "<br/>";
            ans += "port " + Request.ServerVariables["SERVER_PORT"] + "<br/>";
            info.InnerHtml = ans;

        }
    }
}